<?php
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2023 https://www.gxgyl.com All rights reserved.

// +----------------------------------------------------------------------
// | Author: Liuyu
// +----------------------------------------------------------------------
declare (strict_types=1);

namespace app\common\model\shiyao;

use cores\BaseModel;

/**
 * 商品图片模型
 * Class GoodsImage
 * @package app\common\model
 */
class PayImage extends BaseModel
{
    // 定义表名
    protected $name = 'shiyao_project_pay_log_image';

    // 定义主键
    protected $pk = 'id';

    protected $updateTime = false;

    /**
     * 关联文件库
     * @return \think\model\relation\BelongsTo
     */
    public function file()
    {
        return $this->belongsTo('app\\common\\model\\UploadFile', 'image_id', 'file_id');
    }

}
